package com.designpattern.PrototypePattern;

/**
 * @Author yue
 * @Date 2021/7/7
 * @Version V1.0.1
 * @Description 原型模式
 */

public class Test {

    public static void main(String[] args) {
        ProtoTypeManager pm = new ProtoTypeManager();
        Shape obj1 = (Circle) pm.getShape("Circle");
        obj1.countArea();
        Shape obj2 = (Shape) pm.getShape("Square");
        obj2.countArea();
    }

}
